package xyz.jfshare.netty.study.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.jfshare.netty.study.server.entity.User;

/**
 * @author YuJie_Jin
 * Description: 用户
 */
public interface UserService extends IService<User> {

    String login(String username,String password);

    String register(String username,
                     String password,
                     String rePassword,
                     String nickName);

    User getByNickName(String nickName);

    boolean setAllOffline();

    int insert(User user);

    boolean setWindow(int id,int window);
}
